import dask.bag as db

# Create a bag from a sequence
data = db.from_sequence([{'name': 'Alice', 'balance': 100},
                         {'name': 'Bob', 'balance': 200},
                         {'name': 'Charlie', 'balance': 300}])

# Perform operations
total_balance = data.pluck('balance').sum().compute()
print("Total balance:", total_balance)